Fedora/RISC-V: Runnable stage 4 disk images

We’ve now got:

  1. An autobuilder.
  2. A multithreaded QEMU.
  3. A Fedora RPMs repository.
  4. A bootable disk image.

It’s unpolished and minimal at the moment, but what you can do today (if you have a Fedora 27+ x86_64 host):

  1. Enable the rjones/riscv copr and install riscv-qemu.
  2. Download the stage4-disk.img, and bbl and uncompress the disk image.
  3. Run this command:
    qemu-system-riscv64 \
        -nographic -machine virt -m 2G -smp 4 \
        -kernel bbl \
        -append "console=ttyS0 ro root=/dev/vda init=/init" \
        -device virtio-blk-device,drive=hd0 \
        -drive file=stage4-disk.img,format=raw,id=hd0 \
        -device virtio-net-device,netdev=usernet \
        -netdev user,id=usernet
    
  4. Inside the guest drop a repo file into /etc/yum.repos.d containing:
    [local]
    name=RPMS
    baseurl=https://fedorapeople.org/groups/risc-v/RPMS/
    enabled=1
    gpgcheck=0
    
  5. Use tdnf --releasever 27 install ... to install more packages.

3 Comments

Filed under Uncategorized

3 responses to “Fedora/RISC-V: Runnable stage 4 disk images

  1. Eugene Syromyatnikov

    Hello.

    Does Fedora has a compat runtime on RISC-V? strace has some code for supporting compat personality on RISC-V, and I’m interested in running test suite against it.

    • rich

      I’m not too sure what the question means. However there is a #fedora-riscv IRC channel (on FreeNode) if you want to discuss it with people who know a lot more about this than I do.

    • Stef O'Rear

      Fedora and RHEL are 64-bit only. There isn’t a good 32-bit Linux environment right now.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.